/**
 * createTime: 2018/3/20 11:15
 * author: zhibin.zhao
 * description:
 */
const express = require('express');
const app = express();

app.all("/", function (req, res, next) {
   console.log("I am All");
   next();
});
app.get('/', function (req, res) {
    res.send("I am Get");
});
app.post('/', function (req, res) {
    res.send("I am POST");
});
app.put('/', function (req, res) {
    res.send('I am Put');
});
app.delete('/', function (req, res) {
    res.send('I am Delete');
});

app.listen(3000);